package com.yingxue.lesson.sihro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author chahua
 * @date 2022/4/5 16:37
 **/
public class CustomUsernamePasswordToken extends UsernamePasswordToken {

    private String jwtToken;

    public CustomUsernamePasswordToken(String token){
        this.jwtToken = token;
    }

    @Override
    public Object getPrincipal(){
        return jwtToken;
    }

    @Override
    public Object getCredentials(){
        return jwtToken;
    }
}
